<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
    <link rel="stylesheet" type="text/css" href="css/common/common.css"/>
    <link rel="stylesheet" type="text/css" href="css/settings.css"/>
    <link rel="stylesheet" type="text/css" href="css/iconfont.css"/>
</head>
<body>
<div id="web">
    <header class="clearfix">
        <a href="../MyInfo.html"><i class="iconfont icon-youbian1"></i></a>
        <h4>设置</h4>
    </header>
    <section class="clearfix">
        <div class="item" onclick="window.location.href='acc_change.html'">
            <p>帐号修改</p><a href="acc_change.html"><i class="iconfont icon-youbian fr"></i></a>
        </div>
        <div class="item">
            <p>我的二维码</p><a href=""><i class="iconfont icon-youbian fr"></i></a>
        </div>
        <ul class="ul_bottom" id="ul_bottom">
            <li>
                <span>各种通知显示</span>
                <div class="on-off fr">
                    <button></button>
                </div>
            </li>
            <li>
                <span>接收相关通告推荐</span>
                <div class="on-off fr">
                    <button></button>
                </div>
            </li>
            <li>
                <span>接收相关活动推荐</span>
                <div class="on-off fr">
                    <button></button>
                </div>
            </li>
            <li>
                <span>通知声音</span>
                <div class="on-off fr">
                    <button></button>
                </div>
            </li>
        </ul>
        <div class="item">
            <p>关于我们</p>
        </div>
        <div class="item">
            <p><a href="">版权声明</a></p>
        </div>
        <div class="item">
            <p><a href="">CEO信箱</a></p>
        </div>
        <div class="item">
            <p><a href="">商务合作</a></p>
        </div>
        <div class="item">
            <p><a href="">清除缓存</a></p>
        </div>
        <input type="button" name="" id="exit_acc" value="退出当前账户"/>
    </section>
</div>

<script src="js/getFont.js"></script>
<script>
    var oUl=document.getElementById('ul_bottom');
    var aLi=oUl.getElementsByTagName('li');
    for(var i=0;i<aLi.length;i++){

        aLi[i].oBtn=true;
        aLi[i].onmouseover=function(){
            var This=this;
            var oDiv=this.getElementsByTagName('div')[0];
            var oButton=oDiv.getElementsByTagName('button')[0];
            oButton.onclick=function(){
                if(This.oBtn){
                    This.className='active';
                    This.oBtn=false;
                }else{
                    This.className='';
                    This.oBtn=true;
                }

            }
        }
    }
</script>
</body>
</html>